<%@ page language="java" contentType="text/html; charset=utf8" pageEncoding="utf8"%>

<br/>
<table border="0" width="90%" cellspacing="0" cellpadding="0">
	<tr>
		<td width="190px" height="30px"></td>
		<td rowspan="6">
			<table border="0" width="100%" height="450" cellspacing="0" cellpadding="0">
				<tr>
					<td class="box_top_left"></td>
					<td class="box_top_centr"></td>
					<td class="box_top_right"></td>
				</tr>
				<tr>
					<td class="box_left">&nbsp;</td>
					<td bgcolor=f8be93 valign="top" align="center">

<% 
	String urlpage="/WEB-INF/jsp/Admin/admininfo.jsp";
	String action = request.getParameter("action");
								
	if (action!=null)
	{
		if( action.equals("adddish") )
		{
			urlpage="/WEB-INF/jsp/Admin/addDish.jsp";
		}
		
		if( action.equals("listdishs") )
		{
			urlpage="/WEB-INF/jsp/Admin/dishlist.jsp";
		}
		
		if( action.equals("finddish") )
		{
			urlpage="/WEB-INF/jsp/Admin/dishfind.jsp";
		}
		
		if( action.equals("editcategory") )
		{
			urlpage="/WEB-INF/jsp/Admin/editCategory.jsp";
		}
		
		if( action.equals("dishedit") )
		{
			urlpage="/WEB-INF/jsp/Admin/dishedit.jsp";
		}
		
		if( action.equals("deldish") )
		{
			urlpage="/WEB-INF/jsp/Admin/delDish.jsp";
		}
																	
	}
									
%> 
<jsp:include page='<%= urlpage %>' />

					</td>
					<td class="box_right"></td>
				</tr>
				<tr>
					<td class="box_bottom_left"></td>
					<td class="box_bottom_centr"></td>
					<td class="box_bottom_right"></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td height=35px>
			<p class="admin_menu">
				<a style="color: #000000" href="/CoffiSweetDreams/managerdishs.htm?action=listdishs">Список блюд</a>
			</p>
		</td>
	</tr>
	<tr>
		<td height=35px>
			<p class="admin_menu">
				<a style="color: #000000" href="/CoffiSweetDreams/managerdishs.htm?action=adddish">Добавить блюдо</a>
			</p>
		</td>
	</tr>
	<tr>
		<td height=35px>
			<p class="admin_menu">
				<a style="color: #000000" href="/CoffiSweetDreams/managerdishs.htm?action=editcategory">Редактировать категории</a>
			</p>
		</td>
	<tr>
		<td height="300px"></td>
	</tr>
</table>
